package org.smart.framework.bean;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @Auther Uncle_Z
 * @date 2017/8/23 23:14
 * @Email:2545375@qq.com
 * @since 1.0
 *
 */

public class View {

    private String path;

    private Map<String, Object> model;

    public View(String path) {
        this.path = path;
        this.model = new HashMap<>();
    }

    public View addModel(String key, Object value) {
        model.put(key, value);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
